/**
 * Created by ZY on 2018/01/06
 */
let _ = require('lodash'),
  util = require('../helper/util'),
  errCode = require('../../conf/errorCode'),
  logger = require('../helper/logger'),
  service = require('../services/reportService');

var tagLogger = new logger.TagLogger('POST_CONTROLLER');

exports.getReportByPage = function(req, res, next) {
  let {page, size} = req.query;
  service.getReportByPage(
    page,
    size,
    util.getHandle(req, res, errCode.GET_REPORT_BY_PAGE),
  );
};

exports.deleteReportByIds = function(req, res, next) {
  let ids = req.params.reportId;
  service.deleteReportByIds(
    ids,
    util.getHandle(req, res, errCode.DELETE_REPORT_BY_IDS),
  );
};

